# 数据库的配置
HOSTNAME = '127.0.0.1'
USERNAME = 'root'
PASSWORD = ''
PORT = '3306'
DATABASE = 'test'
DB_URI = 'mysql://{}:{}@{}:{}/{}'.format(USERNAME, PASSWORD, HOSTNAME, PORT, DATABASE)
SQLALCHEMY_DATABASE_URI = DB_URI
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ECHO = True

# redis的配置信息
REDIS_HOST = '192.168.200.128'
REDIS_PORT = '6379'
REDIS_PSW = 'directABC'

# 邮件服务器配置
MAIL_SERVER = "smtp.qq.com"
MAIL_USE_SSL = True
MAIL_PORT = 465
MAIL_USERNAME = "910801504@qq.com"
# 此处填写的内容应为邮箱的授权码，因安全原因本人此处删除了内容
MAIL_PASSWORD = ""
MAIL_DEFAULT_SENDER = "910801504@qq.com"

# token的时效配置，login单位为小时，fresh单位为天
LOGIN_TOKEN_EXPIRE = 2
REFRESH_TOKEN_EXPIRE = 7

# 其他
JWT_SECRET = 'JWT_PWD'